{{include "controllers/adminpanel/AdminMediaLibrary/index-leftpanel"}}
{{include "controllers/adminpanel/AdminMediaLibrary/index-rightpanel"}}
<div class="mainpanel">
<div class="icons folders">
{{foreach item in folders}}
	<div class="item" id="folder-{{item.id}}">
		<div class="image"><a href="{{call Helpers.copy_url({skip:["file_id","file_folder_id"]})}}file_folder_id={{item.id}}"><img src="/shared/icons/filebrowser/_folder-big.png"/></a></div>
		<div class="name">{{item.name}}</div>
		<div class="under">
			<input type="checkbox" value="{{item.id}}"/>
		</div>
	</div>
{{/foreach}}
<div class="cl"></div>
</div>
<div class="icons files">
{{foreach item in files}}
	<div class="item" id="file-{{item.id}}">
		<div class="image"><img src="{{preview("2"):item.icon}}" class="icon shadow"/></div>
		<div class="name">{{item.name}}</div>
	</div>
{{/foreach}}
<div class="cl"></div>
</div>
</div>

<script>
AdminMediaLibraryFuncs.init_sizes();
AdminMediaLibraryFuncs.init_big_previews();
AdminMediaLibraryFuncs.init_name_update();
</script>
